package com.ydd.vo;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.ydd.result.PageResult;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(description = "  热门置顶文章数据(首页)")
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) //下划线转换
public class TopNewArticleVO {

    @ApiModelProperty("接口数据描述")
    private String  desc; //接口数据描述
    @ApiModelProperty("24小时最新文章数量")
    private Integer numDay; //24小时最新文章数量
    @ApiModelProperty("一周文章最新数量")
    private Integer numWeek;//一周文章最新数量

    @ApiModelProperty("数据")
    private PageResult list;//数据

}